import config from '@/config'
import util from './util'
import store from '@/store'
import tab from './tab'
import theme from './theme'
import http from '@/api/index.js'
// #ifdef APP-PLUS
import eventManager from "@/lib/eventManager.js";
// #endif

export default {
	install(Vue) {
		Vue.prototype.$http = http
		Vue.prototype.$config = config
		Vue.prototype.$util = util
		Vue.prototype.$store = store
		// tab
		Vue.prototype.$switchTab = tab.switchTab
		// 主题控制
		theme.initTheme()
		Vue.prototype.$themeClass = theme.themeClass
		Vue.prototype.$switchTheme = theme.switchTheme
		// #ifdef APP-PLUS
		Vue.prototype.$eventManager = eventManager
		// #endif
	}
}



